package com.chentf.struts2.action;

import com.chentf.struts2.service.UserService;
import com.opensymphony.xwork2.Action;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-01-30 17:31:13
 */
public class RegAction implements Action {

    private UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @Override
    public String execute() throws Exception {
        userService.register();
        return Action.SUCCESS;
    }
}
